Remove points
Filters close points by minimum distance between each other.
removeClosePoints
function is used for filtering points that are close to each other.
This function sorts an array of points by intensity and then calculates euclidean distance between the points. If the distance between points is smaller than the removeClosePoints
option the compared point gets removed.
Extrema without removeClosePoints | Extrema with removeClosePoints |
---|---|
![]() | ![]() |
Parameters and default values
points
image
options
Options
Property | Required | Default value |
---|---|---|
distance | yes | - |
kind | yes | - |
channel | no | 0 |